<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/commons/taglibs.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <title>${tableBean.tableNameNoDash} Form页面</title>
   <script type="text/javascript" src="${r'${ctx}'}/static/js/My97DatePicker/WdatePicker.js"></script>
  </head>
  <body class="container">
  	<div class="row"><a class="btn-link pull-right"  href="${r'${ctx}'}/${tableBean.tableNameNoDash}/list">返回</a></div>
 	<form class="form-horizontal" action="${r'${ctx}'}/${tableBean.tableNameNoDash}/save" method="post">
 	<#list tableBean.columnBeanList as columnBean>
 		 <#if (columnBean.priKey)>
		 <input name="id" value="${r'${bean.'}${columnBean.columnName}}" type="hidden">
		 <#else>
			 <div class="form-group  form-inline">
			    <label class="col-md-2 control-label">${columnBean.columnComment}：</label>
			    <div class="col-md-10">
			    	<#if ('Date'==columnBean.columnType)>
	 		  			<input type="text" class="form-control" value="${r'${bean.'}${columnBean.columnNameNoDash}}" 
					       name="${columnBean.columnNameNoDash}" placeholder="请输入${columnBean.columnComment}"
					       onClick="WdatePicker()" datatype="*"/>
	 		  		<#else>
			 			 <input type="text" class="form-control" value="${r'${bean.'}${columnBean.columnNameNoDash}}" 
					       name="${columnBean.columnNameNoDash}" placeholder="请输入${columnBean.columnComment}"
					       datatype="*"/>
			 		</#if>
			       
			    </div>
		  	</div>
		 </#if>
	</#list>
		<div class="form-group">
	   	<div class="col-md-8 text-right">
	  		<input type="submit" class="btn btn-primary" value="保存"></input>
	  	</div>
	  </div>
 	</form>
 	<script type="text/javascript">
 	$(function(){
			$("form").Validform({
			 tiptype:4
			})
		});
	</script>
  </body>
</html>
